package com.tender.controller;

import com.tender.common.ActionResult;
import com.tender.dtos.SinoiovVehicleHistoryTracesDTO;
import com.tender.dtos.SinoiovVehicleInTimeTracesDTO;
import com.tender.model.SinoioVehicleInTimeTraceRawCondition;
import com.tender.model.VehicleTrajectoryCondition;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.util.CollectionUtils;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.context.request.async.DeferredResult;

import java.util.List;

/**
 * 中交兴路-查询车辆历史轨迹
 */
@Tag(name = "中交兴路-查询车辆历史轨迹", description = "中交兴路-查询车辆历史轨迹")
@RequestMapping("/api/visualization/vehicle")
@RestController
public class SinoiovController {


    @Operation(summary = "中交兴路-查询车辆历史轨迹")
    @PostMapping("/trajectory")
    public ActionResult<SinoiovVehicleHistoryTracesDTO> vehicleTrajectory(
            @Parameter(description = "中交兴路-查询车辆历史轨迹-入参")
            @RequestBody VehicleTrajectoryCondition param) {
        return ActionResult.success();
    }

    // 根据车牌号码列表 查询车辆实时位置
    @Operation(summary = "中交兴路-查询车辆实时轨迹")
    @PostMapping("/inTime/trace")
    public ActionResult<SinoiovVehicleInTimeTracesDTO> inTimeTrace(
            @Parameter(description = "中交兴路-查询车辆实时轨迹-入参")
            @RequestBody SinoioVehicleInTimeTraceRawCondition param) {
        // 默认 5s 超时
        return ActionResult.success();
    }

}
